package com.hmall.cart.listener;

import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.DirectExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/*
  Date: 2023/11/29
  Author: Luochao
  Description:
*/
@Configuration
public class ListenerConfig {

/*    @Bean
    public DirectExchange cartExchange(){
        return new DirectExchange("hmall.cart");
    }

    @Bean
    public Queue removeByItemIdsQueue(){
        return new Queue("cart.removeByItemIds");
    }

    @Bean
    public Binding removeByItemIdsQueueBindingRemoveByItemIds(Queue removeByItemIdsQueue, DirectExchange cartExchange){
        return BindingBuilder.bind(removeByItemIdsQueue).to(cartExchange).with("red");
    }*/

}
